public class test {
	/*public static void main(String[] args) {
		System.out.println("Hello World!");
	}*/
	/*public static void main(String[] args) {
		byte b = 0x55;
		short s = 0x55ff;
		long l = 0xffff;
		float f = 0.23f;
		System.out.println("字节型变量 b = " + b);
		System.out.println("短整型变量 s = " + s);
		System.out.println("整型变量 i = 1000000");
		System.out.println("长整型变量 l = " + l);
		System.out.println("字符型变量 c = " + 'a');
		System.out.println("浮点型变量 f = " + f);
		System.out.println("双精度变量 d = " + 0.7E-3);
		System.out.println("布尔型变量 B = " + true);
		System.out.println("字符串类对象 S = 这是字符串类数据类型");
	}*/
	/*public static void main(String[] args) {
			int c=18;
			switch (c<10?1:c<25?2:c<35?3:4) {
				case 1:
					System.out.println(" "+c+"℃ 有点冷。要多穿衣服。");
					break;
				case 2:
					System.out.println(" "+c+"℃ 正合适。出去玩吧。");
					break;
				case 3:
					System.out.println(" "+c+"℃ 有点热。");
					break;
				default:
					System.out.println(" "+c+"℃ 太热了!开空调。");
					break;
			}
		}*/
	public static void main(String[] args) {
		int sum1=0;
		for(int i =0;i<=100;i++)
		{
			sum1+=i;
		}
		System.out.println(sum1);
		int i=0;
		int sum2=0;
		while(i<=100)
		{
			sum2+=i;
			i++;
		}
		System.out.println(sum2);
	}
}
